﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class teacher_teacherInfo : System.Web.UI.Page
{
    db_courseware cw = new db_courseware();
    db_teacher teach = new db_teacher();
    public string cwNum = "";//课件数量
    public string cNum = "";//课程数量
    public string time = "";
    public string name = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        Server.Execute("checkTeach.aspx");  // 此处用户权限验证
        name = Session["teacherName"].ToString();
        time = Session["lastTime"].ToString();

        string teacherId = Session["teacherID"].ToString();
        DataSet ds = new DataSet();
        ds = cw.selectNumByTeacherID(teacherId);
        cwNum = ds.Tables[0].Rows[0]["cwnum"].ToString();
        cNum = ds.Tables[0].Rows[0]["cnum"].ToString();

    }
}